package cn.com.roy.thread.t7_1_3.stateTest3;

public class Run {
    public static void main(String[] args) {
        try {
            MyThread1 t1 = new MyThread1();
            t1.setName("A");
            t1.start();

            MyThread2 t2 = new MyThread2();
            t2.setName("B");
            t2.start();

            Thread.sleep(100);
            System.out.println("main方法中的t2状态：" + t2.getState());
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
